<style>
  .basemenus2_tableWidth {
    width: {{$smarty.const.PAGE_WIDTH|escape:'html'}};
    height: 28px;
    margin-bottom:20px;
  }
  .basemenus2_table1 {
    width: 900px;
    height: 33px;
    margin-bottom:20px;
    margin-top:-15px;
  }
  .basemenus2_table2 {
    background-color:#e6ede7;
    border-right:solid 1px #afb4b0;
    border-bottom:solid 1px #afb4b0;
    height: 24px;
    margin-bottom:20px;
  }
  .basemenus2_table21 {
    background-color:#e6ede7;
    border-right:solid 1px #afb4b0;
    border-bottom:solid 1px #afb4b0;
    height: 24px;
  }
  .basemenus2_table3 {
    width: 900px;
    height: 33px;
    margin-top:-15px;
  }
  .basemenus2_remainCell2 {
    width: 580px;
  }
  .basemenus2_manageTask {
    background-image: url(images/common/back.png);
    background-repeat: repeat-x;
    width: 168px;
    height: 54px;
    font-weight:bold;
    font-family:Arial,sans-serif;
    color: #FFFFFF;
    text-align: center;
    vertical-align: middle;
    white-space:nowrap;
    cursor: pointer;
    padding: 0 2px 12px;
  }
  .basemenus2_manageTaskHilight {
    background-image: url(images/common/back_hilight.png);
    background-repeat: no-repeat;
    width: 168px;
    height: 54px;
    font-weight:bold;
    font-family:Arial,sans-serif;
    color: #FFFFFF;
    white-space:nowrap;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 0 2px 12px;
  }
  .basemenus2_manageTask a,.basemenus2_manageTaskHilight a{
    color:white;
    font-weight:bold;
    font-size:121%; 
    text-decoration:none;
    outline: none;
  }
  .basemenus2_td5{
    width: 694px;
  }
  .basemenus2_div {
    vertical-align: middle;
    margin:0 0 20px 0;
  }
  
</style>
{{*/*-----------------Tasks------------------------*/*}}
{{if $menu->a == 1}}
  <div align="center">
    <table class="basemenus2_tableWidth" cellPadding="0" cellSpacing="0">
      <tr>
        <td {{if $menu->b == 1}} class="basemenus2_manageTaskHilight" {{else}} class="basemenus2_manageTask" {{/if}} onclick="location.href='?p=pageserv&t=pageb1servworks&m={%22a%22:1,%22b%22:1,%22c%22:1,%22d%22:1}';">
          <a href="?p=pageserv&t=pageb1servworks&m={%22a%22:1,%22b%22:1,%22c%22:1,%22d%22:1}">My Tasks</a>
          <span id="serv_tasks_jobs_span" style="font-weight:bold;color:#fff;"></span>
        </td>
        <td {{if $menu->b == 2}} class="basemenus2_manageTaskHilight" {{else}} class="basemenus2_manageTask" {{/if}} onclick="location.href='?p=pageserv&t=pageb1designerworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:1}&opts={%22d%22:1,%22m%22:1 }';">
          <a href="?p=pageserv&t=pageb1designerworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:1}&opts={%22d%22:1,%22m%22:1}">Others' Tasks</a>
        </td>
        <td {{if $menu->b == 4}} class="basemenus2_manageTaskHilight" {{else}} class="basemenus2_manageTask" {{/if}} onclick="location.href='?p=pageserv&t=pageb1servalltasks&m={%22a%22:1,%22b%22:4,%22c%22:1}';">
          <a href="?p=pageserv&t=pageb1servalltasks&m={%22a%22:1,%22b%22:4,%22c%22:1}">All Tasks</a>
        </td>
        <td></td>
      </tr>
    </table>
  </div>
  {{if $menu->b == 2}}
    <div class="basemenus2_div" align="center" >
      <table style="width:{{$smarty.const.PAGE_WIDTH|escape:'html'}};margin-top:-15px;" cellPadding="0" cellSpacing="0" border=0>
        <tr>
          <td align="left">
            <table cellPadding="0" cellSpacing="0">
              <tr>
                <td {{if $supervise->s == 1}} class="basemenus2_td8Highlight" {{else}} class="basemenus2_td8" {{/if}} onclick="location.href='?p=pageserv&t=pageb1designerworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:1}&opts={%22d%22:1,%22m%22:1}'">
                  <a href="?p=pageserv&t=pageb1designerworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:1}&opts={%22d%22:1,%22m%22:1}">Designer</a>
                </td>
                <td {{if $supervise->s == 2}} class="basemenus2_td81Highlight" {{else}} class="basemenus2_td81" {{/if}} onclick="location.href='?p=pageserv&t=pageb1editorworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:2}'">
                  <a href="?p=pageserv&t=pageb1editorworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:2}">Video Editing</a>
                </td>
                <td {{if $supervise->s == 3}} class="basemenus2_td81Highlight" {{else}} class="basemenus2_td81" {{/if}} onclick="location.href='?p=pageserv&t=pageb1factoryworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:3}'">
                  <a href="?p=pageserv&t=pageb1factoryworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:3}">Factory</a>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
     </div>
    {{if $supervise->s == 1}} 
      <div align="center" >
        <table style="width:{{$smarty.const.PAGE_WIDTH|escape:'html'}};margin-top:-20px;" cellPadding="0" cellSpacing="0" border=0>
          <tr>
            <td align="left">
              <table class="basemenus2_table2" cellPadding="0" cellSpacing="0" id="asst_tasks_menus_table"></table>
            </td>
          </tr>
        </table>
      </div>
    {{/if}}
  {{/if}}
{{/if}}


{{*/*-----------------Customers------------------------*/*}}
{{if $menu->a == 2}}
  <div align="center">
    <table class="basemenus2_tableWidth" cellPadding="0" cellSpacing="0">
      <tr>
        <td {{if $menu->b == 1}} class="basemenus2_manageTaskHilight" {{else}} class="basemenus2_manageTask" {{/if}} onclick="location.href='?p=pageserv&t=pagecustomers&m={%22a%22:2,%22b%22:1}';">
          <a href="?p=pageserv&t=pagecustomers&m={%22a%22:2,%22b%22:1}">Manage Customers</a>
        </td>
        <td {{if $menu->b == 2}} class="basemenus2_manageTaskHilight" {{else}} class="basemenus2_manageTask" {{/if}} onclick="location.href='?p=pageserv&t=pagecustomer&m={%22a%22:2,%22b%22:2}';">
          <a href="?p=pageserv&t=pagecustomer&m={%22a%22:2,%22b%22:2}">Add New Customer</a>
        </td>
        <td class=""></td>
      </tr>
    </table>
  </div>
{{/if}}


{{if $menu->a == 3}}
  <div align="center">
    <table class="basemenus2_tableWidth" cellPadding="0" cellSpacing="0">
      <tr>
        <td  {{if $menu->b == 1}} class="basemenus2_manageTaskHilight" {{else}} class="basemenus2_manageTask" {{/if}} onclick="location.href='?p=pageserv&t=pagewakkanoworkingdate&m={%22a%22:3,%22b%22:1}';">
          <a href="?p=pageserv&t=pagewakkanoworkingdate&m={%22a%22:3,%22b%22:1}">No Wedding Day</a>
        </td>
        <td {{if $menu->b == 2}} class="basemenus2_manageTaskHilight" {{else}} class="basemenus2_manageTask" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentfirst1&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:1}';">
           <a href="?p=pageserv&t=pagepaymentfirst1&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:1}">Receipt Issue</a>
        </td>
        <td {{if $menu->b == 3}} class="basemenus2_manageTaskHilight" {{else}} class="basemenus2_manageTask" {{/if}} onclick="location.href='?p=pageserv&t=pageb1payment&m={%22a%22:3,%22b%22:3,%22e%22:1}';">
           <a href="?p=pageserv&t=pageb1payment&m={%22a%22:3,%22b%22:3,%22e%22:1}">Misc</a>
        </td>
        <td class="">
        </td>
      </tr>
    </table>
  </div>
  {{if $menu->b == 2}}
    <div style="width:{{$smarty.const.PAGE_WIDTH|escape:'html'}}" align="left">
      <table class="basemenus2_table3"  cellPadding="0" cellSpacing="0">
        <tr>
          <td {{if $menu->c == 1}} class="basemenus2_td8Highlight" {{else}} class="basemenus2_td8" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentfirst1&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:1}'">
            <a href="?p=pageserv&t=pagepaymentfirst1&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:1}">1st Receipt</a>
          </td>
          <td {{if $menu->c == 2}} class="basemenus2_td8Highlight" {{else}} class="basemenus2_td8" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentsecond1&m={%22a%22:3,%22b%22:2,%22c%22:2,%22d%22:1}'">
            <a href="?p=pageserv&t=pagepaymentsecond1&m={%22a%22:3,%22b%22:2,%22c%22:2,%22d%22:1}">2nd Receipt</a>
          </td>
          <td {{if $menu->c == 3}} class="basemenus2_td8Highlight" {{else}} class="basemenus2_td8" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentthird1&m={%22a%22:3,%22b%22:2,%22c%22:3,%22d%22:1}'">
            <a href="?p=pageserv&t=pagepaymentthird1&m={%22a%22:3,%22b%22:2,%22c%22:3,%22d%22:1}">3rd Receipt</a>
          </td>
          <td {{if $menu->c == 4}} class="basemenus2_td81Highlight" {{else}} class="basemenus2_td8" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentforth&m={%22a%22:3,%22b%22:2,%22c%22:4,%22d%22:1}'">
            <a href="?p=pageserv&t=pagepaymentforth&m={%22a%22:3,%22b%22:2,%22c%22:4,%22d%22:1}">4th Receipt</a>
          </td>
          <td class="basemenus2_td4"></td>
        </tr>
      </table>
      {{if $menu->c == 1}} 
        <div div style="width:{{$smarty.const.PAGE_WIDTH|escape:'html'}}" align="left">
          <table cellPadding="0" cellSpacing="0">
            <tr>
              <td>
                <table class="basemenus2_table21" cellPadding="0" cellSpacing="0" border=0>
                  <tr>
                    <td {{if $menu->d == 1}} class="basemenus2_td9Highlight" {{else}} class="basemenus2_td9" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentfirst1&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:1}'">
                      <a href="?p=pageserv&t=pagepaymentfirst1&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:1}">定金低于10%<span id="admin_payments_first1_span"></span></a>
                    </td>
                    <td {{if $menu->d == 2}} class="basemenus2_td9Highlight" {{else}} class="basemenus2_td9" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentfirst2&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:2}'">
                      <a href="?p=pageserv&t=pagepaymentfirst2&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:2}">一个月之内结婚无定金<span id="admin_payments_second1_span"></span></a>
                    </td>
                    <td {{if $menu->d == 3}} class="basemenus2_td9Highlight" {{else}} class="basemenus2_td9" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentfirst3&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:3}'">
                      <a href="?p=pageserv&t=pagepaymentfirst3&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:3}">一个星期之内结婚无定金<span id="admin_payments_third1_span"></span></a>
                    </td>
                    <td {{if $menu->d == 4}} class="basemenus2_td9Highlight" {{else}} class="basemenus2_td9" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentfirst4&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:4}'">
                      <a href="?p=pageserv&t=pagepaymentfirst4&m={%22a%22:3,%22b%22:2,%22c%22:1,%22d%22:4}">已经结婚无定金<span id="admin_payments_forth1_span"></span></a>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </div>
      {{/if}}
      {{if $menu->c == 2}} 
        <div align="center">
          <table style="width:{{$smarty.const.PAGE_WIDTH|escape:'html'}}" cellPadding="0" cellSpacing="0">
            <tr>
              <td align="left">
                <table class="basemenus2_table21" cellPadding="0" cellSpacing="0" border=0>
                  <tr>
                    <td {{if $menu->d == 1}} class="basemenus2_td9Highlight" {{else}} class="basemenus2_td9" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentsecond1&m={%22a%22:3,%22b%22:2,%22c%22:2,%22d%22:1}'">
                      <a href="?p=pageserv&t=pagepaymentsecond1&m={%22a%22:3,%22b%22:2,%22c%22:2,%22d%22:1}">一星期之内结婚未付二次款<span id="admin_payments_first2_span"></span></a>
                    </td>
                    <td {{if $menu->d == 2}} class="basemenus2_td9Highlight" {{else}} class="basemenus2_td9" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentsecond2&m={%22a%22:3,%22b%22:2,%22c%22:2,%22d%22:2}'">
                       <a href="?p=pageserv&t=pagepaymentsecond2&m={%22a%22:3,%22b%22:2,%22c%22:2,%22d%22:2}">已经结婚未付二次款<span id="admin_payments_second2_span"></span></a>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </div>
      {{/if}}
      {{if $menu->c == 3}} 
        <div align="center">
          <table style="width:{{$smarty.const.PAGE_WIDTH|escape:'html'}}" cellPadding="0" cellSpacing="0">
            <tr>
              <td align="left">
                <table class="basemenus2_table21" cellPadding="0" cellSpacing="0" border=0>
                  <tr>
                    <td {{if $menu->d == 1}} class="basemenus2_td9Highlight" {{else}} class="basemenus2_td9" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentthird1&m={%22a%22:3,%22b%22:2,%22c%22:3,%22d%22:1}'">
                      <a href="?p=pageserv&t=pagepaymentthird1&m={%22a%22:3,%22b%22:2,%22c%22:3,%22d%22:1}">结婚一个月未领取CD<span id="admin_payments_first3_span"></span></a>
                    </td>
                    <td {{if $menu->d == 2}} class="basemenus2_td9Highlight" {{else}} class="basemenus2_td9" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentthird2&m={%22a%22:3,%22b%22:2,%22c%22:3,%22d%22:2}'">
                      <a href="?p=pageserv&t=pagepaymentthird2&m={%22a%22:3,%22b%22:2,%22c%22:3,%22d%22:2}">已领取CD未付三次款<span id="admin_payments_second3_span"></span></a>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </div>
      {{/if}}
      {{if $menu->c == 4}} 
        <div align="center">
          <table style="width:{{$smarty.const.PAGE_WIDTH|escape:'html'}}" cellPadding="0" cellSpacing="0">
            <tr>
              <td align="left">
                <table class="basemenus2_table21" cellPadding="0" cellSpacing="0" border=0>
                  <tr>
                    <td {{if $menu->d == 1}} class="basemenus2_td9Highlight" {{else}} class="basemenus2_td9" {{/if}} onclick="location.href='?p=pageserv&t=pagepaymentforth&m={%22a%22:3,%22b%22:2,%22c%22:4,%22d%22:1}'">
                      <a href="?p=pageserv&t=pagepaymentforth&m={%22a%22:3,%22b%22:2,%22c%22:4,%22d%22:1}">全部结束未付清款额<span id="admin_payments_first4_span"></span></a>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </div>
      {{/if}}
    </div>
  {{/if}}
  {{if $menu->b == 3}}
    <div style="margin-bottom:20px;width:{{$smarty.const.PAGE_WIDTH|escape:'html'}}" align="left">
      <table class="basemenus2_table3" cellPadding="0" cellSpacing="0">
        <tr>
          <td {{if $menu->e == 1}} class="basemenus2_td81Highlight" {{else}} class="basemenus2_td8" {{/if}} onclick="location.href='?p=pageserv&t=pageb1payment&m={%22a%22:3,%22b%22:3,%22e%22:1}'">
            <a href="?p=pageserv&t=pageb1payment&m={%22a%22:3,%22b%22:3,%22e%22:1}">Late Receipt</a>
          </td>
          <td {{if $menu->e == 2}} class="basemenus2_td81Highlight" {{else}} class="basemenus2_td8" {{/if}} onclick="location.href='?p=pageserv&t=pageb1orderdiscount&m={%22a%22:3,%22b%22:3,%22e%22:2}'">
            <a href="?p=pageserv&t=pageb1orderdiscount&m={%22a%22:3,%22b%22:3,%22e%22:2}">Over Discount</a>
          </td>
          <td class=""></td>
        </tr>
      </table>
    </div>
  {{/if}}
{{/if}}  
